package cn.kgc.springmvcday04.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 课工场
 * @date 2023/10/18
 * @description
 */
@Controller
@RequestMapping("student")
public class StudentController {


    @RequestMapping("m1")
    public String method1(String info){

        int length = info.length();

        return "main";
    }

    @RequestMapping("m2")
    public String method2(){

        int a = 1/0;

        return "main";
    }
}
